package net.lahuobao.finance.entity.payrate;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;

/**   
 * @Title: Entity
 * @Description: 费率设置主表
 * @author zhangdaihao
 * @date 2016-08-29 10:28:31
 * @version V1.0   
 *
 */
@Entity
@Table(name = "cargo_owner_pay_rates", schema = "")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class CargoOwnerPayRatesEntity implements java.io.Serializable {
	/**主键Id*/
	private String id;
	/**关联公司Id*/
	private Integer organizationId;
	/**物流服务商--组织机构Id*/
	private String serviceProviderId;
	/**承运商--组织机构Id*/
	private String carrierId;
	/**数据主体--组织机构Id*/
	private String dataSourceId;
	/**垫付机构id*/
	private String advancedId;
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  主键Id
	 */
	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name ="ID",nullable=false,length=32)
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  关联公司Id
	 */
	@Column(name ="ORGANIZATION_ID",nullable=false,precision=10,scale=0)
	public Integer getOrganizationId(){
		return this.organizationId;
	}
	
	@Column(name ="advanced_id",nullable=true,length=36)
	public String getAdvancedId() {
		return advancedId;
	}

	public void setAdvancedId(String advancedId) {
		this.advancedId = advancedId;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  关联公司Id
	 */
	public void setOrganizationId(Integer organizationId){
		this.organizationId = organizationId;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  物流服务商--组织机构Id
	 */
	@Column(name ="SERVICE_PROVIDER_ID",nullable=true,length=36)
	public String getServiceProviderId(){
		return this.serviceProviderId;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  物流服务商--组织机构Id
	 */
	public void setServiceProviderId(String serviceProviderId){
		this.serviceProviderId = serviceProviderId;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  承运商--组织机构Id
	 */
	@Column(name ="CARRIER_ID",nullable=true,length=36)
	public String getCarrierId(){
		return this.carrierId;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  承运商--组织机构Id
	 */
	public void setCarrierId(String carrierId){
		this.carrierId = carrierId;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  数据主体--组织机构Id
	 */
	@Column(name ="DATA_SOURCE_ID",nullable=true,length=36)
	public String getDataSourceId(){
		return this.dataSourceId;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  数据主体--组织机构Id
	 */
	public void setDataSourceId(String dataSourceId){
		this.dataSourceId = dataSourceId;
	}
}
